
@extends('home.layout.base')
<link rel="stylesheet" href="{{URL::asset('./css/help/list.css')}}">

@section('content')
<div class="main" id="helpList">
    <div class="storelistTitle" id="storelistTitle" v-cloak>
        <span class="storelistTitle_left">
            <span>

                <img src="{{URL::asset('./img/icon/home.png')}}">
            </span>
            <span><a href="{{route('home.index.index') }}">首页</a> > 帮助中心</span>
        </span>
        <span class="storelistTitle_right">
            <span>找不到合适的供应商？发个需求试试？</span>
            <button @click=" window.location.href = '{{ route('home.demand.demandAdd') }}'">免费发布需求</button>
        </span>
    </div>
    <div class="hrContent">
        @include('home.help.menu')
        <div class="hrContentRight" id="helpLists" v-cloak>
            <div class="myOrder">
                <div class="myTitle">
                    <div><span></span>@{{listDetails.title}}</div>
                </div>
            </div>
            <div class="listData">
                <p class="detailsTime">@{{listDetails.created_at}}</p>
                <div class="detailsContent" v-html="listDetails.content"></div>
            </div>
        </div>
    </div>
</div>
@endsection
@section('compontentScipts')
<script>
    $(() => {
        let helpLists = new Vue({
            el: '#helpLists',
            data: () => {
                return {
                    id: getQueryString("id") || '',
                    pageNumber: 1,
                    pageCount: 0,
                    listDetails:{},
                }
            },
            created() {
                this.getDetails();
            },
            mounted() {},
            methods: {
                getDetails(){
                    let data = {
                        id:this.id
                    }
                apiAjax("{{ route('home.help.helpDetailsApi')}}", 'get', data, (res) => {
                    if (res.code == 0) {
                        this.listDetails=res.data
                    } else {
                        this.$message({
                            message: res.msg,
                            type: 'warning'
                        });

                    }
                }, (erro) => {

                });
                },
            }
        })
    })
</script>
@endsection